package com.gljx.web.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import com.gljx.web.Entity.SubjectTwoRegentry;
import org.springframework.stereotype.Component;

@Component
public interface SubjectTwoRegentryMapper {
    int deleteByPrimaryKey(String fid);

    int insert(SubjectTwoRegentry record);

    int insertSelective(SubjectTwoRegentry record);

    SubjectTwoRegentry selectByPrimaryKey(String fid);

    int updateByPrimaryKeySelective(SubjectTwoRegentry record);

    int updateByPrimaryKey(SubjectTwoRegentry record);

    /**
     * 根据父类id查找子类信息
     * @param fid
     * @return
     */
    List<SubjectTwoRegentry> selSubjectTwoRegentryByParentId(@Param("fid")String fid, @Param("studentName")String studentName);

    SubjectTwoRegentry  selSharCarTwoRegBySutid(@Param("lcsjid")String lcsjid,@Param("studentid")String studentid);

    List<SubjectTwoRegentry> selChangeCarTwoRegBySutid(@Param("lcsjid")String lcsjid,@Param("studentid")String studentid);

    int deleteByParentId(String parentid);

    SubjectTwoRegentry  selSubjectTwoRegentryByStuid(@Param("parentid") String parentid,@Param("studentid")String studentid);
}